<!DOCTYPE html>
<html>
<head>
<title>Integral System</title>
<!--<link href="http://fonts.googleapis.com/css?family=Lato:100,300,400,700" media="all" rel="stylesheet" type="text/css" />-->
<link href="__PUBLIC__/Intesys/default/stylesheets/bootstrap.min.css" media="all" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/Intesys/default/stylesheets/font-awesome.css" media="all" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/Intesys/default/stylesheets/se7en-font.css" media="all" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/Intesys/default/stylesheets/style.css" media="all" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/Intesys/default/stylesheets/jquery.fancybox.css" media="all" rel="stylesheet" type="text/css" />
<script src="__PUBLIC__/Intesys/default/javascripts/jquery-1.10.2.min.js" type="text/javascript"></script><script src="__PUBLIC__/Intesys/default/javascripts/jquery-ui.js" type="text/javascript"></script><script src="__PUBLIC__/Intesys/default/javascripts/bootstrap.min.js" type="text/javascript"></script><script src="__PUBLIC__/Intesys/default/javascripts/modernizr.custom.js" type="text/javascript"></script><script src="__PUBLIC__/Intesys/default/javascripts/jquery.fancybox.pack.js" type="text/javascript"></script><script src="__PUBLIC__/Intesys/default/javascripts/jquery.sparkline.min.js" type="text/javascript"></script>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
</head>
  <body class="login2">
    <!-- Login Screen -->
    <div class="login-wrapper">
      <a href="./"><img width="100" src="__PUBLIC__/Intesys/default/images/logo3.png" /></a>
      <form action="__URL__/dologin" name="dologin" method="post">
        <div class="form-group">
          <div class="input-group">
            <span class="input-group-addon"><i class="icon-envelope"></i></span><input autocomplete="off" name="username" class="form-control" placeholder="用户名/邮箱" type="text">
          </div>
        </div>
        <div class="form-group">
          <div class="input-group">
            <span class="input-group-addon"><i class="icon-lock"></i></span><input autocomplete="off" class="form-control" name="password" placeholder="密码" type="password">
          </div>
        </div>
        <a class="pull-right" href="#">忘记密码了？</a>
        <div class="text-left" style="visibility:hidden;">
          <label class="checkbox"><input type="checkbox"><span>自动登录</span></label>
        </div>
        <input class="btn btn-lg btn-primary btn-block" type="submit" value="登录">
        
        
      </form>
      <notempty name="tiket['ticket']">
      <p>
         <a href="{:U('reg')}">还没有账户？点击这里注册</a>
      </p>
      </notempty>
      <a class="btn btn-default-outline btn-block fancybox" href="#fancybox-example">二维码</a>
    </div>
    <div id="fancybox-example" style="display: none;">
      <img id="test1" width="240" height="240" src="https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket={$tiket.ticket}">
    </div>
    <!-- End Login Screen -->
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
<script>
	$(".fancybox").fancybox({height: 'auto',fitToView: false,autoSize: true,padding: 15,nextEffect: 'fade',prevEffect: 'fade',helpers: {title: {type: "outside"}}});
	$(document).ready(function(e) {
        $("#test1").css({"max-width":document.body.clientWidth-80+"px","max-height":document.body.clientWidth-80+"px"});
        
	   var sit = setInterval(function(){
			$.post('{:U('weixinDoLogin')}',{'pass':1},function(data){
				if(data.status == 1){
					clearInterval(sit);
					window.location.href = data.url;
				}
			},'json');
		},2000);
	});
</script>
  </body>
</html>